package com.csu54sher.basereservation.dto;


import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class UserWithoutPasswordDTO {
    @NotBlank(message = "真实名字不能为空")
    private String name;

    @NotBlank(message = "昵称不能为空")
    private String nickname;

    @NotBlank(message = "学号/工号不能为空")
    private String idNumber;

    @NotBlank(message = "学院不能为空")
    private String college;

    @NotBlank(message = "团支部名称不能为空")
    private String department;

    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式错误")
    private String phoneNumber;

}
